<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f5f5f5;
      margin-top: 20%;
      flex-direction: column;
      gap: 15px 0;
    }

    img {
      width: 40px;
      height: 40px;
      border-radius: 3px;
    }

    .flexbox {
      display: flex;
      align-items: center;
      color: #fff;
    }

    .msg {
      margin-left: 12px;
      padding: 10px;
      background: #fff;
      color: #000;
      border-radius: 3px;
      position: relative;
    }

    .msg::before {
      content: "";
      position: absolute;
      width: 6px;
      height: 6px;
      left: -5px;
      top: 45%;
      transform: translateY(-50%);
      rotate: 45deg;
      background: #fff;

    }
  </style>
</head>

<body>
  <div class="flexbox">
    <img src="./avatar-s.jpg" alt="">
    <div class="msg">豪哥 晚上出来喝点</div>
  </div>
  <div class="flexbox">
    <img src="./avatar-d.jpg" alt="">
    <div class="msg">豪哥 晚上出来喝点</div>
  </div>
  <div class="flexbox">
    <img src="./avatar-z.jpg" alt="">
    <div class="msg">豪哥 晚上出来喝点</div>
  </div>
  <div class="flexbox">
    <img src="./avatar-h.jpg" alt="">
    <div class="msg">豪哥 晚上出来喝点</div>
  </div>
</body>

</html>